package com.itheima02;

import java.io.*;
import java.util.HashSet;

public class Test01 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis =new BufferedInputStream(new FileInputStream("day11_demo\\info1.txt"));
        HashSet<Integer> hs = new HashSet<>();
        int by ;
        while ((by = bis.read())!=-1){
            hs.add(by);
        }
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("day11_demo\\info1.txt"));
        for (Integer h : hs) {
            bos.write(h);
        }







        bis.close();
       bos.close();

    }
}
